package com.freecloud.whispered.auth.service;

import com.freecloud.framework.service.InterfaceBaseService;
import com.freecloud.whispered.auth.entity.SysMenuEntity;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * 菜单管理
 * 
 * @author maomao
 * @email 138383877@qq.com
 */
@Service
public interface SysMenuService extends InterfaceBaseService<SysMenuEntity,Long> {

	/**
	 * 根据父菜单，查询子菜单
	 * @param parentId 父菜单ID
	 * @param menuIdList  用户菜单ID
	 */
	List<SysMenuEntity> queryListParentId(Long parentId, List<Long> menuIdList);

	/**
	 * 获取不包含按钮的菜单列表
	 */
	List<SysMenuEntity> queryNotButtonList();
	
	/**
	 * 获取用户菜单列表
	 */
	List<SysMenuEntity> getUserMenuList(Long userId);
	
	/**
	 * 查询用户的权限列表
	 */
	List<SysMenuEntity> queryUserList(Long userId);

}
